//
//  MemoryView.h
//  Memory5
//
//  Created by Jin Hu on 2010/08/08.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Card.h"
#import <AudioToolbox/AudioServices.h>
#import "Screen.h"
#import "MemoryStage.h"
@interface MemoryView : Screen {

	Card* cardFlipped[2];
	NSMutableArray* cards;
	int total;
	int correct;
	SystemSoundID flip;
	SystemSoundID match;
	int stageNr;
}
-(id)initWithFrame:(CGRect)r stage:(MemoryStage*)s;

-(IBAction)flipToFront:(id)sender;
-(IBAction)flipToBack:(id)sender;
-(IBAction)flipAllBack:(id)sender;
- (void)initSound;
- (void)initStage:(MemoryStage*)stage;

@end
